Page({
  data: {
    balance: 0.00
  },
  onLoad() {},
  onShow() {
    const balance = wx.getStorageSync('balance') || 0;
    this.setData({ balance });
  },
  goOrder() {
    wx.switchTab({ url: '/pages/order/index' });
  },
  goAddress() {
    wx.navigateTo({ url: '/pages/address/index' });
  },
  goToVipCenter() {
    wx.navigateTo({ url: '/pages/vipcenter/index' });
  },
  goToCouponPack() {
    wx.navigateTo({ url: '/pages/couponpack/index' });
  },
  goToVipCode() {
    wx.navigateTo({ url: '/pages/vipcode/index' });
  },
  goToMall() {
    wx.navigateTo({ url: '/pages/mall/index' });
  }
}); 